package com.kgo.eidtor.util;

public class RestfulConfig {
	public static class GET {
		public static class OK {
			public static String code = "0";
			public static String msg = "查询成功！";
		}

		public static class Fail {
			public static String code = "500";
			public static String msg = "查询失败！";
		}
	}

	// 更新
	public static class PUT {
		public static class C200 {
			public static String code = "200";
			public static String msg = "更新成功！";
		}

		public static class C400 {
			public static String code = "400";
			public static String msg = "更新失败，违法非空约束！";
		}

		public static class C500 {
			public static String code = "500";
			public static String msg = "更新失败！";
		}
	}

	// 删除
	public static class DELETE {
		public static class C200 {
			public static String code = "200";
			public static String msg = "删除成功！";
		}

		public static class C400 {
			public static String code = "400";
			public static String msg = "删除失败，未接受到主键！";
		}

		public static class C500 {
			public static String code = "500";
			public static String msg = "删除失败！";
		}
	}

	// 新增
	public static class POST {
		public static class C200 {
			public static String code = "200";
			public static String msg = "新增成功！";
		}

		public static class C400 {
			public static String code = "400";
			public static String msg = "新增失败，违法非空约束！";
		}

		public static class C500 {
			public static String code = "500";
			public static String msg = "新增失败！";
		}
	}
}
